import { createApp } from 'vue'
import { createPinia } from 'pinia'
import 'normalize.css'
import '@/assets/style/css/reset.css'
import '@wangeditor/editor/dist/css/style.css'
import 'vue3-emoji/dist/style.css'
import V3Emoji from 'vue3-emoji'

import App from './App.vue'
import router from './router'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

//国际化
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'

import { registerIcon } from '@/global'

const app = createApp(App)

app.use(createPinia())
app.use(router)
app.use(V3Emoji)

//注册图标
registerIcon(app)
//国际化
app.use(ElementPlus, {
  locale: zhCn
})
app.mount('#app')
